<template>
  <!-- hvps111明细-->
  <el-dialog :title="title" center :visible.sync="openState" width="1024px" :close-on-click-modal="false">
    <el-form ref="form" :model="form" label-width="110px" :disabled="true">
      <el-card class="form-card txnInfo-card">
        <div slot="header" class="label-header-msg">
          <span>交易基础信息</span>
        </div>
        <el-row>
          <el-col :span="8">
            <el-form-item label="交易流水号" prop="id">
              <el-input v-model="form.id"/>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="报文标识号" prop="pkgId">
              <el-input v-model="form.pkgId"/>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="行内流水号" prop="internalId1">
              <el-input v-model="form.internalId1"/>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="8">
            <el-form-item label="CPG日期" prop="vdate">
              <el-date-picker v-model="form.vdate" style="width: 100%;" type="date" value-format="yyyyMMdd"/>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="工作日期" prop="workdate">
              <el-date-picker v-model="form.workdate" style="width: 100%;" type="date" value-format="yyyyMMdd"/>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="清算日期" prop="clrDate">
              <el-date-picker v-model="form.clrDate" style="width: 100%;" type="date" value-format="yyyyMMdd"/>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="8">
            <el-form-item label="业务类型" prop="bizTypeCode">
              <el-select v-model="form.bizTypeCode" placeholder="业务类型">
                <el-option
                  v-for="dict in dictMap.BIZ_TYPE"
                  :key="dict.value"
                  :label="`${dict.value}-${dict.text}`"
                  :value="dict.value"
                ></el-option>
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="业务种类" prop="bizCtgyCode">
              <el-select v-model="form.bizCtgyCode" placeholder="业务种类">
                <el-option
                  v-for="dict in dictMap.BIZ_CTGY"
                  :key="dict.value"
                  :label="`${dict.value}-${dict.text}`"
                  :value="dict.value"
                ></el-option>
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="业务优先级" prop="bizPriority">
              <el-select v-model="form.bizPriority" placeholder="业务优先级">
                <el-option
                  v-for="dict in dictMap.PRIORITY3CODE"
                  :key="dict.value"
                  :label="`${dict.value}-${dict.text}`"
                  :value="dict.value"
                ></el-option>
              </el-select>
            </el-form-item>
          </el-col>
        </el-row>

        <el-row>
          <el-col :span="8">
            <el-form-item label="交易渠道" prop="source">
              <el-select v-model="form.source" placeholder="柜面交易" disabled>
                <el-option
                  v-for="dict in dictMap.TXN_SOURCE"
                  :key="dict.value"
                  :label="`${dict.value}-${dict.text}`"
                  :value="dict.value"
                ></el-option>
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="记账标志" prop="cbflag">
              <el-select v-model="form.cbflag" placeholder="记账标志">
                <el-option
                  v-for="dict in dictMap.CBFLAG"
                  :key="dict.value"
                  :label="`${dict.value}-${dict.text}`"
                  :value="dict.value"
                ></el-option>
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="账户类型" prop="custflag1">
              <el-select v-model="form.custflag1" placeholder="账户类型">
                <el-option
                  v-for="dict in dictMap.CUST_FLAG1"
                  :key="dict.value"
                  :label="`${dict.value}-${dict.text}`"
                  :value="dict.value"
                ></el-option>
              </el-select>
            </el-form-item>
          </el-col>
        </el-row>

        <el-row>
          <el-col :span="8">
            <el-form-item label="交易币种" prop="curcd">
              <el-input v-model="form.curcd" placeholder="人民币-CNY" :disabled="true" style="width: 195px"/>
            </el-form-item>
          </el-col>

          <el-col :span="8">
            <el-form-item label="原交易流水号" prop="oriId">
              <el-input v-model="form.oriId" placeholder="原交易流水号" :disabled="true"/>
            </el-form-item>
          </el-col>
        </el-row>
      </el-card>
      <!--付款人信息-->
      <el-card class="form-card payerInfo-card">
        <div slot="header" class="label-header-msg">
          <span>付款人信息</span>
        </div>
        <el-row :gutter="10">
          <el-col :span="12">
            <el-form-item label="付款人账号" prop="payerActno">
              <el-input v-model="form.payerActno" placeholder="付款人账号"/>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-form-item label="付款人名称" prop="payerName">
            <el-input v-model="form.payerName" placeholder="付款人名称"/>
          </el-form-item>
        </el-row>
        <el-row>
          <el-form-item label="付款人地址" prop="payerAddr">
            <el-input v-model="form.payerAddr" placeholder="付款人地址"/>
          </el-form-item>
        </el-row>
        <el-row :gutter="10">
          <el-col :span="8">
            <div class="grid-payer">
              <el-form-item label="付款行行号" prop="payerBrno">
                <el-input v-model="form.payerBrno" placeholder="付款行行号"/>
              </el-form-item>
            </div>
          </el-col>

          <el-col :span="16">
            <el-form-item label="付款行行名" prop="payerBrName" label-width="130px">
              <el-input v-model="form.payerBrName" placeholder="付款行行名"/>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="10">
          <el-col :span="8">
            <div class="grid-payer">
              <el-form-item label="付款人开户行号" prop="payerAccBrno">
                <el-input v-model="form.payerAccBrno" placeholder="付款人开户行行号"/>
              </el-form-item>
            </div>
          </el-col>
          <el-col :span="16">
            <el-form-item label="付款人开户行行名" prop="payerAccBrName" label-width="130px">
              <el-input v-model="form.payerAccBrName" placeholder="付款人开户行行名"/>
            </el-form-item>
          </el-col>
        </el-row>
      </el-card>
      <!--收款人信息-->
      <el-card class="form-card payeeInfo-card">
        <div slot="header" class="label-header-msg">
          <span>收款人信息</span>
        </div>
        <el-row :gutter="10">
          <el-col :span="12">
            <div class="grid-payee">
              <el-form-item label="收款人账号" prop="payeeActno">
                <el-input v-model="form.payeeActno" placeholder="收款人账号"/>
              </el-form-item>
            </div>
          </el-col>
        </el-row>
        <el-form-item label="收款人名称" prop="payeeName">
          <el-input v-model="form.payeeName" placeholder="收款人名称"/>
        </el-form-item>
        <el-form-item label="收款人地址" prop="payeeAddr">
          <el-input v-model="form.payeeAddr" placeholder="收款人地址"/>
        </el-form-item>
        <el-row :gutter="10">
          <el-col :span="8">
            <div class="grid-payee">
              <el-form-item label="收款行行号" prop="payeeBrno">
                <el-input v-model="form.payeeBrno" placeholder="收款行行号"/>
              </el-form-item>
            </div>
          </el-col>
          <el-col :span="16">
            <el-form-item label="收款行行名" prop="payeeBrName" label-width="130px">
              <el-input v-model="form.payeeBrName" placeholder="收款行行名"/>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="10">
          <el-col :span="8">
            <div class="grid-payee">
              <el-form-item label="收款人开户行号" prop="payeeAccBrno">
                <el-input v-model="form.payeeAccBrno" placeholder="收款人开户行行号"/>
              </el-form-item>
            </div>
          </el-col>
          <el-col :span="16">
            <el-form-item label="收款人开户行行名" prop="payeeAccBrName" label-width="130px">
              <el-input v-model="form.payeeAccBrName" placeholder="收款人开户行行名"/>
            </el-form-item>
          </el-col>
        </el-row>
      </el-card>
      <!--其他信息-->
      <el-card class="form-card payOtherInfo-card">
        <div slot="header" class="label-header-msg">
          <span>其他交易信息</span>
        </div>
        <el-row>
          <el-col :span="8">
            <el-form-item label="交易金额" prop="amount">
              <ht-amount-input v-model="form.amount" placeholder="交易金额" style="width: 195px"></ht-amount-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="大写金额" prop="bAmount">
              <ht-amount-upper :inputValue="form.amount" placeholder="交易金额" style="width: 195px"></ht-amount-upper>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="手续费金额" prop="feeAmount">
              <el-tooltip :content="form.feeAmountRemarks" placement="top-start"  :disabled="form.feeAmountRemarks===''||form.feeAmountRemarks===null||form.feeAmountRemarks===undefined">
                <ht-amount-input
                  v-model="form.feeAmount"
                  placeholder="手续费金额"
                ></ht-amount-input>
              </el-tooltip>
            </el-form-item>

          </el-col>
        </el-row>
        <el-row :gutter="10">
          <el-col :span="8">
            <div class="grid-otherInfo">
              <el-form-item label="中介机构1" prop="agency1">
                <el-input v-model="form.agency1" placeholder="中介机构1"/>
              </el-form-item>
            </div>
          </el-col>
          <el-col :span="16">
            <el-form-item label="中介机构1名称" prop="agency1name" label-width="130px">
              <el-input v-model="form.agency1name" placeholder="中介机构1名称"/>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="10">
          <el-col :span="8">
            <div class="grid-otherInfo">
              <el-form-item label="中介机构2" prop="agency2">
                <el-input v-model="form.agency2" placeholder="中介机构2"/>
              </el-form-item>
            </div>
          </el-col>

          <el-col :span="16">
            <el-form-item label="中介机构2名称" prop="agency2name" label-width="130px">
              <el-input v-model="form.agency2name" placeholder="中介机构2名称"/>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="24">
            <div class="grid-otherInfo">
              <el-form-item label="备注" prop="remarks">
                <el-input type="textarea" v-model="form.remarks" placeholder="备注" maxlength="140" show-word-limit/>
              </el-form-item>
            </div>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="24">
            <div class="grid-otherInfo">
              <el-form-item label="附言" prop="memo">
                <el-input type="textarea" v-model="form.memo" placeholder="附言" maxlength="210" show-word-limit/>
              </el-form-item>
            </div>
          </el-col>
        </el-row>
      </el-card>
      <!--附加信息域 根据业务类型，动态显示或隐藏-->
      <el-card class="form-card payAddInfo-card" v-show="form.bizTypeCode === 'A109'">
        <div slot="header" class="label-header-msg">
          <span>委托收款 （划回）</span>
        </div>
        <el-row :gutter="10">
          <el-col :span="8">
            <el-form-item label="票据日期" prop="clltnNotesDate" label-width="150px">
              <el-input v-model="form.clltnNotesDate" placeholder="票据日期"/>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="票据号码" prop="e2eId" label-width="110px">
              <el-input v-model="form.e2eId" placeholder="票据号码"/>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="凭证种类" prop="clltnNotesType" label-width="110px">
              <el-select v-model="form.clltnNotesType" placeholder="凭证种类">
                <el-option
                  v-for="dict in dictMap.CLLTN_NOTES_TYPE"
                  :key="dict.value"
                  :label="`${dict.value}-${dict.text}`"
                  :value="dict.value"
                ></el-option>
              </el-select>
            </el-form-item>
          </el-col>
        </el-row>
      </el-card>
      <el-card class="form-card payAddInfo-card" v-if="form.bizTypeCode === 'A110'">
        <div slot="header" class="label-header-msg">
          <span>托收承付（划回）</span>
        </div>
        <el-row>
          <el-col :span="12">
            <el-form-item label="票据日期" prop="clltnNotesDate" label-width="110px">
              <el-date-picker
                v-model="form.clltnNotesDate"
                type="date"
                placeholder="选择日期"
                value-format="yyyyMMdd"
              ></el-date-picker>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <!--“委托收款（划回）、托收承付（划回）、商业汇票、支票、银行汇票、银行本票、城市商业银行汇票”时：“端到端标识号”填写内容为“票据号码/凭证号码”指实际贸易的标识信息-->
            <el-form-item label="票据号码" prop="e2eId" label-width="110px">
              <acct-no-input v-model="form.e2eId" placeholder="票据号码"/>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="支付金额币种" prop="pmtPayCurcd">
              <el-input v-model="form.pmtPayCurcd" disabled/>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="支付金额" prop="pmtPayAmount" label-width="110px">
              <ht-amount-input v-model="form.pmtPayAmount" placeholder="支付金额"></ht-amount-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="原托币种" prop="pmtOriCurcd">
              <el-input v-model="form.pmtOriCurcd" disabled/>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="原托金额" prop="pmtOriAmount" label-width="110px">
              <ht-amount-input v-model="form.pmtOriAmount" placeholder="原托金额"></ht-amount-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="拒付币种" prop="pmtRejectCurcd">
              <el-input v-model="form.pmtRejectCurcd" disabled/>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="拒付金额" prop="pmtRejectAmount" label-width="110px">
              <ht-amount-input v-model="form.pmtRejectAmount" placeholder="拒付金额"></ht-amount-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="赔偿币种" prop="pmtAmendsCurcd">
              <el-input v-model="form.pmtAmendsCurcd" disabled/>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="赔偿金额" prop="pmtAmendsAmount" label-width="110px">
              <ht-amount-input v-model="form.pmtAmendsAmount" placeholder="赔偿金额"></ht-amount-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="多付币种" prop="pmtAddCurcd">
              <el-input v-model="form.pmtAmendsCurcd" disabled/>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="多付金额" prop="pmtAddAmount" label-width="110px">
              <ht-amount-input v-model="form.pmtAddAmount" placeholder="多付金额"></ht-amount-input>
            </el-form-item>
          </el-col>
        </el-row>
      </el-card>
      <el-card class="form-card payAddInfo-card" v-show="form.bizTypeCode === 'A111'">
        <div slot="header" class="label-header-msg">
          <span>商业汇票附加域信息</span>
        </div>
        <el-row>
          <el-col :span="8">
            <el-form-item label="申请人账号" prop="dftAppActno" label-width="110px">
              <el-input v-model="form.dftAppActno" placeholder="申请人账号"/>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="申请人名称" prop="dftAppName" label-width="110px">
              <el-input v-model="form.dftAppName" placeholder="申请人名称"/>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="出票日期" prop="dftDate" label-width="110px">
              <el-date-picker
                style="width: 100%;"
                v-model="form.dftDate"
                type="date"
                placeholder="票据日期"
                value-format="yyyyMMdd"
              ></el-date-picker>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="8">
            <el-form-item label="票据号码" prop="e2eId" label-width="110px">
              <el-input v-model="form.e2eId" placeholder="票据号码"/>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="出票金额" prop="dftAmount" label-width="110px">
              <ht-amount-input v-model="form.dftAmount" placeholder="出票金额"/>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="实际结算金额" prop="dftStAmt" label-width="110px">
              <ht-amount-input v-model="form.dftStAmt" placeholder="实际结算金额"/>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="多付金额" prop="dftOverAmt" label-width="110px">
              <ht-amount-input v-model="form.dftOverAmt" placeholder="多付金额"/>
            </el-form-item>
          </el-col>
        </el-row>
      </el-card>
      <el-card class="form-card payAddInfo-card" v-show="form.bizTypeCode === 'A113'">
        <div slot="header" class="label-header-msg">
          <span>跨境支付附加域信息</span>
        </div>
        <el-row>
          <el-col :span="12">
            <el-form-item label="关联业务委托日期" prop="cbBizAssocBizDate" label-width="110px">
              <el-date-picker
                v-model="form.cbBizAssocBizDate"
                type="date"
                placeholder="关联业务委托日期"
                value-format="yyyyMMdd"
              ></el-date-picker>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="费用编码" prop="cbBizFeeCode" label-width="110px">
              <el-input v-model="form.cbBizFeeCode" placeholder="费用编码"/>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="发报行的收费" prop="cbBizSndBnkFee" label-width="110px">
              <el-input v-model="form.cbBizSndBnkFee" placeholder="发报行的收费"/>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="收报行的收费" prop="payAddInfo" label-width="110px">
              <el-input v-model="form.payAddInfo" placeholder="收报行的收费"/>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="24">
            <div class="grid-otherInfo">
              <el-form-item label="跨境业务附言" prop="cbBizRemark">
                <el-input type="textarea" v-model="form.cbBizRemark" placeholder="跨境业务附言" maxlength="210"
                          show-word-limit/>
              </el-form-item>
            </div>
          </el-col>
        </el-row>
      </el-card>
      <el-card class="form-card payAddInfo-card" v-show="form.bizTypeCode === 'A201'">
        <div slot="header" class="label-header-msg">
          <span>支票附加域信息</span>
        </div>
        <el-row>
          <el-col :span="8">
            <el-form-item label="出票日期" prop="dftDate" label-width="110px">
              <el-date-picker
                style="width: 100%;"
                v-model="form.dftDate"
                type="date"
                placeholder="出票日期"
                value-format="yyyyMMdd"
              ></el-date-picker>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="票据号码" prop="e2eId" label-width="110px">
              <el-input v-model="form.e2eId" placeholder="票据号码"/>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="出票人名称" prop="checkAppName" label-width="110px">
              <el-input v-model="form.checkAppName" placeholder="出票人名称"/>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="8">
            <el-form-item label="票据张数" prop="checkNotesNum" label-width="110px">
              <el-input v-model="form.checkNotesNum" placeholder="票据张数"/>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="票据金额" prop="checkNotesAmount" label-width="110px">
              <ht-amount-input v-model="form.checkNotesAmount" placeholder="票据金额222"/>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="牌价" prop="checkExchage" label-width="110px">
              <ht-amount-input v-model="form.checkExchage" placeholder="牌价"/>
            </el-form-item>
          </el-col>
        </el-row>
      </el-card>
      <el-card class="form-card payAddInfo-card" v-show="form.bizTypeCode === 'A202'&& form.bizCtgyCode === '02901'">
        <div slot="header" class="label-header-msg">
          <span>汇票资金移存附加域信息</span>
        </div>
        <el-row>
          <el-col :span="8">
            <el-form-item label="出票日期" prop="dftDate" label-width="110px">
              <el-date-picker
                style="width: 100%;"
                v-model="form.dftDate"
                type="date"
                placeholder="出票日期"
                value-format="yyyyMMdd"
              ></el-date-picker>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="票据号码" prop="e2eId" label-width="110px">
              <el-input v-model="form.e2eId" placeholder="票据号码"/>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="汇票密押" prop="dftKey" label-width="110px">
              <el-input v-model="form.dftKey" placeholder="汇票密押"/>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="8" v-show="form.bizCtgyCode !== '02904'">
            <el-form-item label="汇票种类" prop="dftCtgy" label-width="110px">
              <el-select v-model="form.dftCtgy" placeholder="汇票种类">
                <el-option v-for="dict in dictMap.DFT_CTGY" :key="dict.value" :label="`${dict.value}-${dict.text}`"
                           :value="dict.value"></el-option>
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="现金汇票兑付行" prop="dftPayBrno" label-width="110px">
              <el-input v-model="form.dftPayBrno" placeholder="现金汇票兑付行"/>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="收款人名称" prop="dftPayerName" label-width="110px">
              <el-input v-model="form.dftPayerName" placeholder="收款人名称"/>
            </el-form-item>
          </el-col>
        </el-row>
      </el-card>
      <el-card class="form-card payAddInfo-card" v-show="form.bizTypeCode === 'A202'&& form.bizCtgyCode === '02902'">
        <div slot="header" class="label-header-msg">
          <span>汇票资金清算附加域信息</span>
        </div>
        <el-row :gutter="10">
          <el-col :span="8">
            <el-form-item label="出票日期" prop="dftDate" label-width="110px">
              <el-date-picker style="width: 195px" v-model="form.dftDate"
                              type="date" value-format="yyyyMMdd" placeholder="选择日期"></el-date-picker>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="票据号码" prop="e2eId" label-width="110px">
              <el-input v-model="form.e2eId" placeholder="票据号码"/>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <div class="grid-payAddInfo">
              <el-form-item label="汇票密押" prop="dftKey" label-width="110px">
                <el-input v-model="form.dftKey" placeholder="汇票密押"/>
              </el-form-item>
            </div>
          </el-col>
        </el-row>
        <el-row :gutter="10">
          <el-col :span="8">
            <div class="grid-payAddInfo">
              <el-form-item label="出票金额" prop="dftAmount" label-width="110px">
                <ht-amount-input v-model="form.dftAmount" placeholder="出票金额"/>
              </el-form-item>
            </div>
          </el-col>
          <el-col :span="8">
            <div class="grid-payAddInfo">
              <el-form-item label="汇票签发行行号" prop="dftSndBrno" label-width="110px">
                <el-input v-model="form.dftSndBrno" placeholder="汇票签发行行号"/>
              </el-form-item>
            </div>
          </el-col>
          <el-col :span="8">
            <div class="grid-payAddInfo">
              <el-form-item label="多余金额" prop="dftOverAmt" label-width="110px">
                <ht-amount-input v-model="form.dftOverAmt" placeholder="多余金额"/>
              </el-form-item>
            </div>
          </el-col>
        </el-row>
        <el-row>
          <el-col>
            <div class="grid-payAddInfo">
              <el-form-item label="申请人账号" prop="dftAppActno" label-width="110px">
                <el-input v-model="form.dftAppActno" placeholder="申请人账号"/>
              </el-form-item>
            </div>
          </el-col>
          <el-col>
            <el-form-item label="申请人名称" prop="dftAppName" label-width="110px">
              <el-input v-model="form.dftAppName" placeholder="申请人名称"/>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col>
            <el-form-item label="票面记载的收款人名称" prop="dftPayerName" label-width="140px">
              <el-input v-model="form.dftPayerName" placeholder="票面记载的收款人名称"/>
            </el-form-item>
          </el-col>
        </el-row>
      </el-card>
      <el-card class="form-card payAddInfo-card" v-show="form.bizTypeCode === 'A202'&& form.bizCtgyCode === '02903'">
        <div slot="header" class="label-header-msg">
          <span>汇票资金多余划回附加域信息</span>
        </div>
        <el-row :gutter="10">
          <el-col :span="8">
            <el-form-item label="出票日期" prop="dftDate" label-width="110px">
              <el-date-picker style="width: 195px" v-model="form.dftDate"
                              type="date" value-format="yyyyMMdd" placeholder="选择日期"></el-date-picker>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="票据号码" prop="e2eId" label-width="110px">
              <el-input v-model="form.e2eId" placeholder="票据号码"/>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <div class="grid-payAddInfo">
              <el-form-item label="汇票密押" prop="dftKey" label-width="110px">
                <el-input v-model="form.dftKey" placeholder="汇票密押"/>
              </el-form-item>
            </div>
          </el-col>
        </el-row>
        <el-row :gutter="10">
          <el-col :span="8">
            <div class="grid-payAddInfo">
              <el-form-item label="出票金额" prop="dftAmount" label-width="110px">
                <ht-amount-input v-model="form.dftAmount" placeholder="出票金额"/>
              </el-form-item>
            </div>
          </el-col>
          <el-col :span="8">
            <div class="grid-payAddInfo">
              <el-form-item label="最后持票人开户行" prop="dftOwnerAccBrno" label-width="120px">
                <el-input v-model="form.dftOwnerAccBrno" placeholder="最后持票人开户行"/>
              </el-form-item>
            </div>
          </el-col>
          <el-col :span="8">
            <div class="grid-payAddInfo">
              <el-form-item label="最后持票人账号" prop="dftOwnerActno" label-width="110px">
                <el-input v-model="form.dftOwnerActno" placeholder="最后持票人账号"/>
              </el-form-item>
            </div>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="8">
            <el-form-item label="最后持票人名称" prop="dftOwnerName" label-width="110px">
              <el-input v-model="form.dftOwnerName" placeholder="最后持票人名称"/>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <div class="grid-payAddInfo">
              <el-form-item label="实际结算金额" prop="dftStAmt" label-width="110px">
                <ht-amount-input v-model="form.dftStAmt" placeholder="实际结算金额"/>
              </el-form-item>
            </div>
          </el-col>
          <el-col :span="8">
            <el-form-item label="提示付款日期" prop="dftPaymentDate" label-width="110px">
              <el-date-picker style="width: 195px" v-model="form.dftPaymentDate"
                              type="date" value-format="yyyyMMdd" placeholder="选择日期"></el-date-picker>
            </el-form-item>
          </el-col>
        </el-row>
      </el-card>
      <el-card class="form-card payAddInfo-card" v-show="form.bizTypeCode === 'A202'&& form.bizCtgyCode === '02904'">
        <div slot="header" class="label-header-msg">
          <span>汇票资金未用退回附加域信息</span>
        </div>
        <el-row :gutter="10">
          <el-col :span="8">
            <el-form-item label="出票日期" prop="dftDate" label-width="110px">
              <el-date-picker style="width: 195px" v-model="form.dftDate"
                              type="date" value-format="yyyyMMdd" placeholder="选择日期"></el-date-picker>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="票据号码" prop="e2eId" label-width="110px">
              <el-input v-model="form.e2eId" placeholder="票据号码"/>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <div class="grid-payAddInfo">
              <el-form-item label="汇票密押" prop="dftKey" label-width="110px">
                <el-input v-model="form.dftKey" placeholder="汇票密押"/>
              </el-form-item>
            </div>
          </el-col>
        </el-row>
        <el-row :gutter="10">
          <el-col :span="8">
            <div class="grid-payAddInfo">
              <el-form-item label="现金汇票兑付行" prop="dftPayBrno" label-width="110px">
                <el-input v-model="form.dftPayBrno" placeholder="现金汇票兑付行"/>
              </el-form-item>
            </div>
          </el-col>
          <el-col :span="8">
            <el-form-item label="票面记载的收款人名称" prop="dftPayerName" label-width="140px">
              <el-input v-model="form.dftPayerName" placeholder="票面记载的收款人名称"/>
            </el-form-item>
          </el-col>
        </el-row>
      </el-card>
      <el-card class="form-card payAddInfo-card" v-show="form.bizTypeCode === 'A203'">
        <div slot="header" class="label-header-msg">
          <span>银行汇票附加域信息</span>
        </div>
        <el-row>
          <el-col :span="8">
            <el-form-item label="出票日期" prop="dftDate" label-width="110px">
              <el-date-picker
                style="width: 100%;"
                v-model="form.dftDate"
                type="date"
                placeholder="出票日期"
                value-format="yyyyMMdd"
              ></el-date-picker>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="票据号码" prop="e2eId" label-width="110px">
              <el-input v-model="form.e2eId" placeholder="票据号码"/>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="申请人账号" prop="dftAppActno" label-width="110px">
              <el-input v-model="form.dftAppActno" placeholder="申请人账号"/>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="8">
            <el-form-item label="票据种类" prop="dftCtgy" label-width="110px">
              <el-select v-model="form.dftCtgy" placeholder="票据种类">
                <el-option
                  v-for="dict in dictMap.DFT_CTGY"
                  :key="dict.value"
                  :label="`${dict.value}-${dict.text}`"
                  :value="dict.value"
                ></el-option>
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="申请人名称" prop="dftAppName" label-width="110px">
              <el-input v-model="form.dftAppName" placeholder="申请人名称"/>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <div class="grid-payAddInfo">
              <el-form-item label="出票金额" prop="dftAmount" label-width="110px">
                <ht-amount-input v-model="form.dftAmount" placeholder="出票金额"/>
              </el-form-item>
            </div>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="8">
            <el-form-item label="实际结算金额" prop="dftStAmt" label-width="110px">
              <ht-amount-input v-model="form.dftStAmt" placeholder="实际结算金额"/>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="多余金额" prop="dftOverAmt" label-width="110px">
              <ht-amount-input v-model="form.dftOverAmt" placeholder="多余金额"/>
            </el-form-item>
          </el-col>
        </el-row>
      </el-card>
      <el-card class="form-card payAddInfo-card" v-show="form.bizTypeCode === 'A204'">
        <div slot="header" class="label-header-msg">
          <span>银行本票附加域信息</span>
        </div>
        <el-row>
          <el-col :span="8">
            <el-form-item label="出票日期" prop="dftDate" label-width="110px">
              <el-date-picker
                style="width: 100%;"
                v-model="form.dftDate"
                type="date"
                placeholder="出票日期"
                value-format="yyyyMMdd"
              ></el-date-picker>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="票据号码" prop="e2eId" label-width="110px">
              <el-input v-model="form.e2eId" placeholder="票据号码"/>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="申请人账号" prop="dftAppActno" label-width="110px">
              <el-input v-model="form.dftAppActno" placeholder="申请人账号"/>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="8">
            <el-form-item label="申请人名称" prop="dftAppName" label-width="110px">
              <el-input v-model="form.dftAppName" placeholder="申请人名称"/>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="票据种类" prop="dftCtgy" label-width="110px">
              <el-select v-model="form.dftCtgy" placeholder="票据种类">
                <el-option
                  v-for="dict in dictMap.BANK_NOTE_TYPE"
                  :key="dict.value"
                  :label="`${dict.value}-${dict.text}`"
                  :value="dict.value"
                ></el-option>
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="8">
              <el-form-item label="出票金额" prop="dftAmount" label-width="110px">
                <ht-amount-input v-model="form.dftAmount" placeholder="出票金额"/>
              </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="8">
            <el-form-item label="实际结算金额" prop="dftStAmt" label-width="110px">
              <ht-amount-input v-model="form.dftStAmt" placeholder="实际结算金额"/>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="多余金额" prop="dftOverAmt" label-width="110px">
              <ht-amount-input v-model="form.dftOverAmt" placeholder="多余金额"/>
            </el-form-item>
          </el-col>
        </el-row>
      </el-card>
    </el-form>
    <el-form ref="queryDetailForm111" :model="form" label-width="110px" :disabled="true">
      <query-detail-inter-info
        ref="detailInterInfo"
        :dataDetail="this.form"
        :dictMap="dictMap"
      ></query-detail-inter-info>
    </el-form>
    <div slot="footer" class="dialog-footer">
      <el-button @click="handleClose">关闭</el-button>
    </div>
  </el-dialog>
</template>
<script>
import CardForm from "@/views/components/CardForm";
import {detail} from "@/api/cnaps/baseBiz/send/sendCommon.js";
import HtAmountInput from "@/views/components/HtAmountInput";
import HtAmountUpper from "@/views/components/HtAmountUpper";
import QueryDetailInterInfo from "./queryDetailInterInfo";

export default {
  name: "QueryDetailDialog",
  components: {
    CardForm,
    HtAmountInput,
    HtAmountUpper,
    QueryDetailInterInfo,
  },
  props: {
    dictMap: {
      type: Object,
      default: () => {
        return {};
      },
    },
  },
  data() {
    return {
      detailForm111: {},
      busTypeList: [],
      id: "",
      pkgNo: "",
      title: "",
      // 是否显示弹出层
      openState: false,
      // 表单参数
      form: {
        amount: "0.00",
      },
    };
  },
  mounted() {
  },
  methods: {
    // 关闭回掉
    handleClose() {
      this.openState = false;
    },
    show(id, pkgNo) {
      let that = this;
      if (id) {
        this.title = "大额客户发起汇兑明细";
        detail({
          coreId: id,
          pkgNo: pkgNo,
        }).then((res) => {
          let data = res.result.detail6401DataModel;
          this.$set(this, "form", data);
          this.openState = true;
        });
      }
    },

    cancel() {
      this.openState = false;
    },
  },
};
</script>
<style>
.label-header-msg {
  font-weight: bold;
}

.form-card {
  margin-bottom: 10px;
}
</style>
